package com.test.study.shiro_demo.dao;

import com.test.study.shiro_demo.entity.TPerms;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface TPermsDao {

    TPerms getById(Integer pid);

    List<TPerms> listByEntity(TPerms tPerms);

    TPerms getByEntity(TPerms tPerms);

    List<TPerms> listByIds(List<Integer> list);

    int insert(TPerms tPerms);

    int insertBatch(List<TPerms> list);

    int update(TPerms tPerms);

    int updateByField(@Param("where") TPerms where, @Param("set") TPerms set);

    int updateBatch(List<TPerms> list);

    int deleteById(Integer pid);

    int deleteByEntity(TPerms tPerms);
  
    int deleteByIds(List<Integer> list);
    
    int countAll();
    
    int countByEntity(TPerms tPerms);
    
}